// CubeDlg.cpp : implementation file
//

#include "stdafx.h"
#include "test.h"
#include "CubeDlg.h"
#include "CubeFilter.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CCubeDlg dialog


CCubeDlg::CCubeDlg(Mesh3D * mesh,CWnd* pParent /*=NULL*/)
	: CDialog(CCubeDlg::IDD, pParent),malla(mesh)
{
	//{{AFX_DATA_INIT(CCubeDlg)
	m_scale = 1.0f;
	//}}AFX_DATA_INIT
}


void CCubeDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CCubeDlg)
	DDX_Text(pDX, IDC_SCALE, m_scale);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CCubeDlg, CDialog)
	//{{AFX_MSG_MAP(CCubeDlg)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CCubeDlg message handlers

void CCubeDlg::OnOK() 
{
	UpdateData();
	CubeFilter filter;
	filter(malla,m_scale);
	CDialog::OnOK();
}
